package cxy.highConcurrency;

import java.util.concurrent.CompletableFuture;

public class CompletableFuture_4 {
	public static void main(String[] args) {
		CompletableFuture<Integer> f0 = CompletableFuture
		.supplyAsync(()->7/0)
    	.thenApply(r->r*10)
    	.exceptionally(e-> 1);
    	System.out.println(f0.join());
	}
}
